<template>
	<view>
		<view class="content_box">
			<view class="content">
				<view class="content_input" @click="getgfuanyuiwmne">
					<view class="view1">
						关于我们
					</view>
					<view class="">
						<u-icon name="arrow-right" color="#303030" size="14"></u-icon>
					</view>
				</view>
				<view class="content_input">
					<view class="view1">
						版本号
					</view>
					<view class="">
						当前版本5.2.33
					</view>
				</view>
				<view class="content_input"@click="getagreement(0)">
					<view class="view1">
						用户协议
					</view>
					<view class="">
						<u-icon name="arrow-right" color="#303030" size="14"></u-icon>
					</view>
				</view>
				<view class="content_input"@click="getagreement(1)">
					<view class="view1">
						隐私条款
					</view>
					<view class="">
						<u-icon name="arrow-right" color="#303030" size="14"></u-icon>
					</view>
				</view>
			</view>

			<button @click="modify" class="ubtton">退出登录</button>
		</view>
	</view>
</template>

<script>
	import config from '@/common/config.js'
	export default {
		data() {
			return {
				userinfo: '',
				fileList1: [],
				typeName: '',
				value: true

			};
		},

		onLoad() {

		},
		methods: {
			//跳转用户协议
			getagreement(type) {
				if(type == 1){
					uni.navigateTo({
						url: '/pages/yinsi_agreement'
					})
				}else{
					uni.navigateTo({
						url: '/pages/user_agreement'
					})
				}
			},
			change(e) {
				console.log('change', e);
			},
			routergo(e) {
				uni.navigateTo({
					url: e
				})
			},
			//退出登录
			modify(){
				let that = this
				uni.showModal({
					title: '提示信息',
					content: '确定要退出登录吗？',
					success: function(result) {
						if (result.confirm) {
							//点击退出
							that.getTuichu()
						} else if (result.cancel) {
							console.log('用户点击取消');
						}
					}
				});
			},
			//跳转关于我们
			getgfuanyuiwmne(){
				uni.navigateTo({
					url: '/pages/page/me/me_about'
				})
			},
			//点击退出
			getTuichu(){
				uni.removeStorageSync('userInfo');
				uni.removeStorageSync('userInfosss');
				uni.removeStorageSync('token');
				uni.showToast({
					title: '退出成功~',
					icon: "none"
				})
				setTimeout(() => {
					uni.switchTab({
						url: '/pages/page/me/me'
					});
				}, 2000)
			}
		}
	}
</script>

<style lang="scss">
	::v-deep .u-upload__wrap {
		justify-content: flex-end !important;
	}

	::v-deep .u-upload__wrap__preview {
		margin: 0 auto !important;
	}

	.ubtton {
		width: 95%;
		line-height: 90rpx;
		text-align: center;
		font-size: 30rpx;
		color: white;
		background: #0CCEA1;
		margin: 40rpx auto;
		border: none;
		border-radius: 200rpx;
		position: fixed;
		bottom: 48rpx;
		left: 2.5%;
	}

	.content_box {
		background: #FFFFFF;
		border-radius: 16rpx;
		margin: 0 auto;

		.content {
			width: 100%;
			margin: 0 auto;
			position: relative;

			.content_img {
				position: absolute;
				left: 50%;
				top: -80rpx;
				transform: translateX(-50%);
				width: 138rpx;
				height: 138rpx;

				image {
					border-radius: 50%;
				}
			}

			.content_input {
				display: flex;
				align-items: center;
				justify-content: space-between;
				padding: 30rpx 24rpx;
				box-sizing: border-box;
				border-bottom: 1rpx solid #eaeaea42;

				.view1 {
					width: 30%;
					 
					font-size: 30rpx;
					 
					 
					display: flex;
					align-items: center;
					letter-spacing: 0.6rpx;
					/* 文字色/主要文字 */
					color: #08112C;
				}

				.qx {
					 
					font-size: 30rpx;
					 
					 
					text-align: right;
					display: flex;
					align-items: center;
					letter-spacing: 0.6rpx;
					/* 文字色/辅助说明 */
					color: #7C849C;
				}

				view:nth-child(2) {
					width: 60%;
					display: flex;
					justify-content: flex-end;

					input {

						display: inline-block;
						font-size: 28rpx;
						font-weight: 400;
						color: #979797;
						text-align: right;
					}

					image {
						width: 88rpx;
						height: 88rpx;
					}
				}
			}

			.content_input2 {
				display: flex;
				align-items: center;
				justify-content: space-between;
				padding: 30rpx 24rpx;
				box-sizing: border-box;
				border-bottom: 1rpx solid #eaeaea42;

				.view1 {
					width: 30%;
					font-size: 28rpx;
					font-weight: 400;
					color: #333333;
				}

				.ci_image {
					width: 88rpx;
					display: flex;
					flex-direction: row;
					justify-content: flex-end;
					margin-left: 50%;

					image {
						display: inline-block;
						width: 88rpx;
						height: 88rpx;
						border-radius: 50%;
					}
				}
			}
		}
	}
</style>